home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / wget.vim < prev    next >
Encoding:
Text File  |  2001-09-14  |  6.1 KB  |  146 lines

  1. " Wget syntax file
  2. " Filename:     wget.vim
  3. " Language:     Wget configuration file ( /etc/wgetrc ~/.wgetrc )
  4. " Maintainer:   Doug Kearns <djkea2@mugca.cc.monash.edu.au>
  5. " URL:          http://mugca.cc.monash.edu.au/~djkea2/vim/syntax/wget.vim
  6. " Last Change:  2001 Sep 05
  7.  
  8. " TODO: all commands are actually underscore-insensitive as well as
  9. "       case-insensitive, though they are normally named as listed below
  10.  
  11. " For version 5.x: Clear all syntax items
  12. " For version 6.x: Quit when a syntax file was already loaded
  13. if version < 600
  14.   syntax clear
  15. elseif exists("b:current_syntax")
  16.   finish
  17. endif
  18.  
  19. syn match   wgetComment    "^\s*#.*$" contains=wgetTodo
  20.  
  21. syn keyword wgetTodo       TODO NOTE FIXME XXX contained
  22.  
  23. syn match   wgetAssignment "^\s*\h\+\s*=\s*.*$" contains=wgetCommand,wgetAssignmentOperator,wgetString,wgetBoolean,wgetNumber,wgetValue,wgetQuota
  24.  
  25. syn match   wgetAssignmentOperator "=" contained
  26.  
  27. syn region  wgetString     start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline
  28. syn region  wgetString     start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline
  29.  
  30. syn case ignore
  31. syn keyword wgetBoolean    on off always never 1 0 contained
  32. syn case match
  33.  
  34. syn match   wgetNumber     "\<\d\+\|inf\>"    contained
  35.  
  36. syn match   wgetQuota      "\<\d\+[kKmM]\?\>" contained
  37.  
  38. syn case ignore
  39. syn keyword wgetValue      default binary mega giga micro contained
  40. syn case match
  41.  
  42. syn case ignore
  43. syn match wgetCommand      "^\s*accept" contained
  44. syn match wgetCommand      "^\s*add_hostdir" contained
  45. syn match wgetCommand      "^\s*background" contained
  46. syn match wgetCommand      "^\s*backup_converted" contained
  47. syn match wgetCommand      "^\s*base" contained
  48. syn match wgetCommand      "^\s*bind_address" contained
  49. syn match wgetCommand      "^\s*cache" contained
  50. syn match wgetCommand      "^\s*continue" contained
  51. syn match wgetCommand      "^\s*convert_links" contained
  52. syn match wgetCommand      "^\s*cookies" contained
  53. syn match wgetCommand      "^\s*cut_dirs" contained
  54. syn match wgetCommand      "^\s*debug" contained
  55. syn match wgetCommand      "^\s*delete_after" contained
  56. syn match wgetCommand      "^\s*dir_prefix" contained
  57. syn match wgetCommand      "^\s*dirstruct" contained
  58. syn match wgetCommand      "^\s*domains" contained
  59. syn match wgetCommand      "^\s*dot_bytes" contained
  60. syn match wgetCommand      "^\s*dots_in_line" contained
  61. syn match wgetCommand      "^\s*dot_spacing" contained
  62. syn match wgetCommand      "^\s*dot_style" contained
  63. syn match wgetCommand      "^\s*exclude_directories" contained
  64. syn match wgetCommand      "^\s*exclude_domains" contained
  65. syn match wgetCommand      "^\s*follow_ftp" contained
  66. syn match wgetCommand      "^\s*follow_tags" contained
  67. syn match wgetCommand      "^\s*force_html" contained
  68. syn match wgetCommand      "^\s*ftp_proxy" contained
  69. syn match wgetCommand      "^\s*glob" contained
  70. syn match wgetCommand      "^\s*header" contained
  71. syn match wgetCommand      "^\s*html_extension" contained
  72. syn match wgetCommand      "^\s*http_keep_alive" contained
  73. syn match wgetCommand      "^\s*http_passwd" contained
  74. syn match wgetCommand      "^\s*http_proxy" contained
  75. syn match wgetCommand      "^\s*https_proxy" contained
  76. syn match wgetCommand      "^\s*http_user" contained
  77. syn match wgetCommand      "^\s*ignore_length" contained
  78. syn match wgetCommand      "^\s*ignore_tags" contained
  79. syn match wgetCommand      "^\s*include_directories" contained
  80. syn match wgetCommand      "^\s*input" contained
  81. syn match wgetCommand      "^\s*kill_longer" contained
  82. syn match wgetCommand      "^\s*load_cookies" contained
  83. syn match wgetCommand      "^\s*logfile" contained
  84. syn match wgetCommand      "^\s*login" contained
  85. syn match wgetCommand      "^\s*mirror" contained
  86. syn match wgetCommand      "^\s*netrc" contained
  87. syn match wgetCommand      "^\s*noclobber" contained
  88. syn match wgetCommand      "^\s*no_parent" contained
  89. syn match wgetCommand      "^\s*no_proxy" contained
  90. syn match wgetCommand      "^\s*output_document" contained
  91. syn match wgetCommand      "^\s*page_requisites" contained
  92. syn match wgetCommand      "^\s*passive_ftp" contained
  93. syn match wgetCommand      "^\s*passwd" contained
  94. syn match wgetCommand      "^\s*proxy_passwd" contained
  95. syn match wgetCommand      "^\s*proxy_user" contained
  96. syn match wgetCommand      "^\s*quiet" contained
  97. syn match wgetCommand      "^\s*quota" contained
  98. syn match wgetCommand      "^\s*reclevel" contained
  99. syn match wgetCommand      "^\s*recursive" contained
  100. syn match wgetCommand      "^\s*referer" contained
  101. syn match wgetCommand      "^\s*reject" contained
  102. syn match wgetCommand      "^\s*relative_only" contained
  103. syn match wgetCommand      "^\s*remove_listing" contained
  104. syn match wgetCommand      "^\s*retr_symlinks" contained
  105. syn match wgetCommand      "^\s*robots" contained
  106. syn match wgetCommand      "^\s*save_cookies" contained
  107. syn match wgetCommand      "^\s*server_response" contained
  108. syn match wgetCommand      "^\s*simple_host_check" contained
  109. syn match wgetCommand      "^\s*span_hosts" contained
  110. syn match wgetCommand      "^\s*sslcertfile" contained
  111. syn match wgetCommand      "^\s*sslcertkey" contained
  112. syn match wgetCommand      "^\s*timeout" contained
  113. syn match wgetCommand      "^\s*timestamping" contained
  114. syn match wgetCommand      "^\s*tries" contained
  115. syn match wgetCommand      "^\s*use_proxy" contained
  116. syn match wgetCommand      "^\s*verbose" contained
  117. syn match wgetCommand      "^\s*wait" contained
  118. syn match wgetCommand      "^\s*waitretry" contained
  119. syn case match
  120.  
  121. " Define the default highlighting.
  122. " For version 5.7 and earlier: only when not done already
  123. " For version 5.8 and later: only when an item doesn't have highlighting yet
  124. if version >= 508 || !exists("did_wget_syn_inits")
  125.   if version < 508
  126.     let did_wget_syn_inits = 1
  127.     command -nargs=+ HiLink hi link <args>
  128.   else
  129.     command -nargs=+ HiLink hi def link <args>
  130.   endif
  131.  
  132.   HiLink wgetAssignmentOperator Special
  133.   HiLink wgetBoolean            Boolean
  134.   HiLink wgetCommand            Identifier
  135.   HiLink wgetComment            Comment
  136.   HiLink wgetNumber             Number
  137.   HiLink wgetQuota              Number
  138.   HiLink wgetString             String
  139.   HiLink wgetTodo               Todo
  140.   HiLink wgetValue              Constant
  141.  
  142.   delcommand HiLink
  143. endif
  144.  
  145. let b:current_syntax = "wget"
  146.